<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <title>Test Case for Issue #766</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>

<h1>Issue #766</h1>

<p>This test-case is intended for <a href="http://code.google.com/p/fbug/issues/detail?id=766">Issue #766</a>
- <span class="h3">JS errors in AJAX callback functions are not shown</span>.
<br/>
<i>Jan Odvarko, odvarko@gmail.com</i>
</p>

<ol>
<li>Open Firebug and enable the Console panel.</li>
<li>Click on the <code>Execute Test</code> button below.</li>
<li>Check the Console panel.</li>
<li>There should be a log of an hash array (displayed as an empty array):
    <span style="color:green">[]</span></li>
<li>The array has two hash keys and it should be possible to expand it by clicking on
    an <span style="color:green">+</span> button.</li>
<li>If you expand it, you should see two properties:
    <span style="color:green">key-1</span> and <span style="color:green">key-2</span>.</li>
</ol>

<button id="testButton" onclick="onExecuteTest()">Execute Test</button>

<script type="text/javascript">
function onExecuteTest()
{
    var hash = [];
    hash["key-1"] = "test1";
    hash["key-2"] = "test2";

    console.log(hash);
}
</script>

</body>
</html>
